impl Show for Profile
authorAlex Crichton <alex@alexcrichton.com>
Thu, 10 Jul 2014 18:49:33 +0000 (11:49 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 10 Jul 2014 18:49:41 +0000 (11:49 -0700)
src/cargo/core/manifest.rs

index a7ed88af178fd8e94b5c0139fb13d60dc097340f..724f5216ea8afc9292cf284daf4d0bfe57ae5060 100644 (file)
@@ -100,7 +100,7 @@ pub enum TargetKind {
     BinTarget
 }
 
-#[deriving(Encodable, Decodable, Clone, Hash, PartialEq)]
+#[deriving(Encodable, Decodable, Clone, Hash, PartialEq, Show)]
 pub struct Profile {
     env: String, // compile, test, dev, bench, etc.
     opt_level: uint,
@@ -227,8 +227,8 @@ impl<E, S: Encoder<E>> Encodable<S, E> for Target {
 
 impl Show for Target {
     fn fmt(&self, f: &mut Formatter) -> fmt::Result {
-        write!(f, "{}(name={}, path={})", self.kind, self.name,
-               self.src_path.display())
+        write!(f, "{}(name={}, path={}, profile={})", self.kind, self.name,
+               self.src_path.display(), self.profile)
     }
 }